//获取个人信息
function getSelfInfo(jim) {
  jim.getUserInfo({
    'username': 'test00110'
  }).onSuccess(function (data) {
    console.log(data)
  }).onFail(function (data) {
    console.log(data)
  });
}
//获取会话列表
function getConversation() {
  app.globalData.jim.getConversation().onSuccess(function (data) {
    console.log(data)
  }).onFail(function (data) {
    console.log(data)
  });
}

module.exports = {
  getSelfInfo: getSelfInfo,
  getConversation: getConversation
}